/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package services.security;

import org.jasypt.util.password.BasicPasswordEncryptor;

/**
 *
 * @author peterfrem
 */
public class EncryptedPasswordGenerator {
    public static String encryptPassword(String passwordToEncrypt) {

	BasicPasswordEncryptor passwordEncryptor = new BasicPasswordEncryptor();
	String encryptedPassword = passwordEncryptor.encryptPassword(passwordToEncrypt);

	return encryptedPassword;
    }
    
}
